import request from '@/utils/request'

// 分类
export function projectCategory () {
  return request({
    url: '/prod-api/proboxServiceItem/category/selectOptions',
    method: 'get'
  })
}

// 制定计划查询
export function getMakePlan (query) {
  return request({
    url: '/prod-api/work/listItemAndCard',
    method: 'get',
    params: query
  })
}

// 手机号模糊查询
export function phoneGetUser (query) {
  return request({
    url: '/prod-api/work/listPhone',
    method: 'get',
    params: query
  })
}

// 根据服务项目id查询sku
export function serviceGetSku (uid) {
  return request({
    url: `/prod-api/work/getSkuById/${uid}`,
    method: 'get'
  })
}

// 创建订单
export function createOrderPC (data) {
  return request({
    url: '/prod-api/work/createOrderByPC',
    method: 'post',
    data: data
  })
}

// 获取订单详情
export function orderDetailPc (uid) {
  return request({
    url: `/prod-api/work/getWorkOrderDetailVo/${uid}`,
    method: 'get'
  })
}

// 收款
export function getMoney (data) {
  return request({
    url: '/prod-api/work/collection',
    method: 'post',
    data: data
  })
}

// 打折
export function dazheMoney (data) {
  return request({
    url: '/prod-api/work/renGongDaZhe',
    method: 'post',
    data: data
  })
}